<div class="isi">
        
        <?php 
            $atr=array('id'=>'formID',
                    'class'=>'formular');
            echo form_open('admin_kota/simpan', $atr);
        ?> 
             <input type="hidden" name="id" value="<?php echo $id; ?>" id="id"/>
            <table width="100%" >
                <tr>
                    <td width="15%" align="text"><p> Nama Provinsi </p> </td>
                    <td><p> : </p> </td>
                    <td> 
                        <select name="id_provinsi" id="id_provinsi" class="validate[required] text-input">
                            <option value=""> Pilih Provinsi :</option>
                            <?php
                                foreach ($provinsi as $data) {
                                    if($id_provinsi==$data->id)
                                        $sel="selected";
                                    else 
                                        $sel="";
                                    echo "<option value='$data->id' $sel>$data->nama_provinsi</option>";
                                }
                            ?>
                        </select>
                    </td>
                </tr>           
                <tr>
                    <td width="15%" align="text"><p> Nama Kota </p> </td>
                    <td><p> : </p> </td>
                    <td> <input type="text" size="50" name="nama_kota" id="nama_kota"  class="validate[required] text-input" value="<?php echo $nama_kota  ?>"/> </td>
                </tr>
                <tr>
                    <td width="15%" align="text"><p> Status </p> </td>
                    <td><p> : </p> </td>
                    <td> 
                        <select name="status" id="status">
                        <?php 
                            if($status){
                                echo "<option value='1' selected>Aktif</option>";
                                echo "<option value='0'>Pasif</option>";
                            }
                            else{
                                echo "<option value='1'>Aktif</option>";
                                echo "<option value='0' selected>Pasif</option>";
                            }
                        ?>

                        </select>
                    </td>
                </tr>            
            </table>
            <br/>
            <?php  echo anchor("admin_kota","Kembali","class='button' style='color:#f8f8f8'") ?>
            <input type="submit" value="         Simpan       " class="button"/>
            <div class="clear"></div>
        </form>
</div>